<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<?php require(WEBTREATS_INCLUDES . "/var.php"); ?>

<?php
$css_style = str_replace('.css', '', $color_scheme);
$variation_imgs = get_template_directory_uri() .'/images/' .$css_style;
?>
<!-- <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/basic.css" type="text/css" media="screen" /> -->
<link rel="stylesheet" href="<?php echo bloginfo('template_url'); ?>/lib/scripts/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen"/>
<link href="<?php bloginfo('stylesheet_directory'); ?>/css/jquery.fancybox-1.3.4.css" rel="stylesheet" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/custom.css" type="text/css" media="screen" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script src="<?php bloginfo('template_url'); ?>/js/main.js" type="text/javascript"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.mousewheel-3.0.4.pack.js"></script>
  <script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.fancybox-1.3.4.pack.js"></script>
<?php if($custom_favicon) { ?>
<link rel="shortcut icon" href="<?php echo $custom_favicon; ?>" />
<?php } ?>

<?php $cufon_style = (!$cufon_disable) ? 'text-indent:-9999px;' : '' ?>
<script type="text/javascript">
/* <![CDATA[ */
document.write('<style type="text/css">h1,h2,h3,h4,h5,#blurb,#site_name,#intro_blurb_title,#call_to_action,.light_gradient.dropcap1,.widgettitle,.dropcap2,.dark_gradient,th{<?php echo $cufon_style; ?>}.noscript{display:none;}.bg_hover{background:none;}</style>');
/* ]]> */
</script>


<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<meta name="shared_path" content="<?php echo $shared_imgs; ?>" />
<meta name="variation_path" content="<?php echo $variation_imgs; ?>" />
<meta name="disable_cufon" content="<?php echo $cufon_disable; ?>" />
<meta name="slider_speed" content="<?php echo $slider_speed; ?>" />
<meta name="slider_disable" content="<?php echo $slider_disable; ?>" />
<meta name="slider_type" content="<?php echo $homepage_slider; ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>

<!--[if IE 8]>
	<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/styles/_shared/ie8.css" type="text/css" media="screen" />
<![endif]-->

<!--[if IE 7]>
	<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/styles/_shared/ie7.css" type="text/css" media="screen" />
<![endif]-->


<?php webtreats_google_analytics(); ?>

</head>

<body>

<div class="body_background">
<div id="header">
	<div class="inner">

		<?php if($site_name) {
			 	$blog_title = get_bloginfo('name'); 
				$blog_title = ($blog_title) ? $blog_title : $themename; ?>
			<div id="site_name">
				<a href="<?php echo get_option('home'); ?>"><?php echo $blog_title; ?></a>
			</div>
		<?php }else{ ?>
			<div id="logo">
				<?php if(!$custom_logo) { ?>
					<a href="<?php echo get_option('home'); ?>"><img alt="" src="<?php echo $variation_imgs; ?>/logo.png" /></a><?php
				 }else{ ?>
					<a href="<?php echo get_option('home'); ?>"><img alt="" src="<?php echo $custom_logo; ?>" /></a><?php 
				 } ?>
			</div>
		<?php } ?>

		<?php webtreats_social_header($variation_imgs); ?>
		
		<?php if($header_contact) { ?>
		<div class="header_contact"><?php $header_contact = stripslashes($header_contact); echo do_shortcode($header_contact); ?></div>
		<?php } ?>
		
		<?php webtreats_menu(); ?>

	<div id="menu_search"></div>

	<!-- tooltip element -->
	<div class="tool_tip search_tooltip">
		<form method="get" action="<?php bloginfo('url'); ?>/">
		<p><input type="text" size="20" class="tooltip_search_field" name="s" id="s" value="Search.." onfocus="if(this.value == 'Search..') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search..';}" /></p>
		<p><input type="submit" value="Search" class="tooltip_search_button" /></p>
		</form>
	</div>

	</div><!-- inner -->
</div><!-- header -->